#ifndef DEBUG_H
#define DEBUG_H

/*
 * Debug.h
 *
 * This file allow for control over the loglevel of the application, there are 3 different log level : 
 * - DEBUG : Those log are for debug purpose only, they are messy and incomplete and you will find plenty of them.
 *           Only use them for debugging or understanding purpose.
 * - LOG : this loglevel gives informations about what the tracker is doing, like who is connecting, wich message are received, use them
 *         if you want those information or for debug
 * - WARNING : this log level is used to warn about possible protocol error or unsuspected error wich might lead to crashes or bug.
 *             Only disable warning log level if you really want 0 output from the tracker
 *
 */



// Uncomment / Comment to activate / deactivate DEBUG logs
//#define DEBUG

#ifdef DEBUG
        #define DBG(fmt, args...) printf("%s:%d DEBUG : "fmt,__FILE__,__LINE__,args)
    #else
        #define DBG(fmt, args...)
#endif

// Uncomment / Comment to activate / deactivate LOG logs
#define LOG

#ifdef LOG
        #define LG(fmt, args...) printf("%s:%d LOG : "fmt,__FILE__,__LINE__,args)
    #else
        #define LG(fmt, args...)
#endif

// Uncomment / Comment to activate / deactivate WARNING logs
#define WARNING

#ifdef WARNING
        #define WG(fmt, args...) printf("%s:%d WARNING : "fmt,__FILE__,__LINE__,args)
    #else
        #define WG(fmt, args...)
#endif


#endif // DEBUG_H
